package net.melon.logger.tail;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class PassiveLogTail implements LogFileTailerListener {

	private List<String> list = new ArrayList<String>();
	
	@Override
	public void newLogFileLine(String line) {
		list.add(line);
	}

	public Iterator<String> get(){
		Iterator<String> itl =  list.iterator();
		list.clear();
		return itl;
	}
	
}
